<template>
	<view class="container">
		<web-view :src="url"></web-view>
	</view>
</template>

<script setup>
	// 导入数据
	import{onLoad} from"@dcloudio/uni-app"
	import{ref}from'vue'
	import { CONFIG } from "/utlis/config"
	
	import { userStore} from "../../store/userStore.js"
import { CONFIGS } from "../../utils/config.js"
	const store=userStore()
	
	const url=ref("")
	onLoad((data)=>{
		url.value=`${CONFIGS.gaode_line_url}/?start=${data.slon},${data.slat}&dest=${data.elon},${data.elet}&destName=${data.name}&key=${CONFIGS.gaode_key}&jscode=${CONFIGS.gaode_skey}`
		 console.log(url.value)
	
	})
</script>
<!-- https://m.amap.com/navi?start=108.93540466034733,34.32749998743924&dest=108.971327,undefined&destName=大唐芙蓉园&key=388509989f114fd982375a490b224eef&jscode=8c0ec90d038e494c0a2837720887e084 -->
<!-- https://m.amap.com/navi?start=108.93535793594076,34.32752109384012&dest=108.971327,34.21294&destName=大唐芙蓉园&key=388509989f114fd982375a490b224eef&jscode=8c0ec90d038e494c0a2837720887e084 -->

<style >

</style>
